package cn.yhp.chatgpt.data.types.common;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author yhp
 * @description
 * @date 2024/2/2
 */
public class Constants {

    public final static String SPLIT = ",";

    @AllArgsConstructor
    @Getter
    public enum ResponseCode{

        SUCCESS("0000", "成功"),
        UN_ERROR("0001", "未知失败"),
        ILLEGAL_PARAMETER("0002", "非法参数"),
        TOKEN_ERROR("0003", "权限拦截");
        /**
         * 返回码
         */
        private final String code;

        /**
         * 返回信息
         */
        private final String info;
    }
}
